<@master template="common/default"  title="时效查询">
<div class="detaiTab  detaiTab1">
<form  action="/aging/index" id="agingInfoform" class="clearfix" data-action-html="#action_load_body">
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
	 	 <tr>
		  	 <td class="bg" align="right" width="15%">单号:</td>
		     <td>
				<input id="billCode" type="text" name="billCode"  class="tabInp" value="${vo.billCode}" />
		    </td>
	    	<td class="bg" align="right" >单据状态:</td>
	    	<td>
	    		<@select dataSouceType="SQZT" name="debtStatus" class="tabInp" value="${vo.debtStatus}" id="debtStatus"/>
	    	</td>		    
	    </tr>
	    <tr>
			<td class="bg" align="right">经营平台:</td>
	       	<td >
	    		<input id="ltdName" name="ltdName" class="tabInp" value="${vo.ltdName}"/>
	    	</td>	
	    	<td class="bg" align="right" >创建日期:</td>
	       	<td colspan="3">
	    		<@date name="createDateStart" class="tabInp" value="${vo.createDateStart}" id="createDateStart"/>&nbsp;-&nbsp;<@date name="createDateEnd" value="${vo.createDateEnd}" class="tabInp" id="createDateEnd" />
	    	</td>	
	    	    
	    	
	    	
	    	
	    </tr>
	    <tr>
	    	<td class="bg" align="right" >信贷经理:</td>
	    	<td><input id="orgManager" name="orgManager" class="tabInp" value="${vo.orgManager}"/></td>
	    	<td class="bg" align="right" >省区:</td>
	    	<td>
	    		<select name="provinceCode" id="provinceCode" style="width:150px;">
					<option value="">--请选择--</option>
					<#list provinceList as province>
						<option value="${province.unitCode}">${province.orgName}</option>
					</#list>
				</select>
	    	</td>
	    </tr>
	    <#--
	    <tr>
	    	<td class="bg" align="right" >超时情况:</td>
	    	<td ><@select type="select" dataSouceType="timeOutType" class="tabInp" name="timeOutType" value="${vo.timeOutType}"/></td>   	
	    </tr>	    
	    <tr>
	    -->
            <td class="bg"></td>
            <td colspan="3" >
                <input type="submit" value="搜索" class="btn_auto_30 btn_blue" />
            	<a id="exportBtn" href="${reporto2ourl}" target="_blank" class="btn_auto_30 btn_blue" >导出</a>
                <span class=" fs14" style="color: red;">【每天凌晨更新时效数据】</span>
            </td>
        </tr>
	 </table>
	</form>
</div>
<div id="aging_result"  class="action-ajax-load mt20" data-url="${agingUrl}"></div>
</@master>
<@js>
	$("#exportBtn").click(function(){
		var url ="/raging/download?1=1";
		if($('#billCode').val())
			url+= "&billCode="+$('#billCode').val();
		if($('#debtStatus').val())
			url+= "&wfType="+$('#debtStatus').val();
		if($('#ltdName').val())
			url+= "&ltdName="+$('#ltdName').val();
		if($('#orgManager').val())
			url+= "&orgManager="+$('#orgManager').val();		
		if($('#provinceCode').val())
			url+= "&provinceCode="+$('#provinceCode').val();	
		if($('#createDateStart').val())
			url+= "&createDateStart="+$('#createDateStart').val();
		if($('#createDateEnd').val())
			url+= "&createDateEnd="+$('#createDateEnd').val();
		$(this).attr('href',url);
   });
</@js>
<@jsRender/>
